﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Urb.Weather.Core.Configuration;

namespace Urb.Weather.Yahoo
{
    public class YahooWeatherDataProviderConfiguration : IWeatherDataProviderConfiguration
    {
        public string LocationId { get; set; }
        public TimeSpan RefreshTimeSpan { get; set; }

        public Type ProviderType
        {
            get { return typeof(YahooWeatherDataProvider); }
        }

        public IWeatherDataProviderConfiguration Clone()
        {
            return new YahooWeatherDataProviderConfiguration()
            {
                LocationId = LocationId,
                RefreshTimeSpan = RefreshTimeSpan
            };
        }
    }
}
